home *** CD-ROM | disk | FTP | other *** search
- Path: news.pge.com!usenet
- From: psk3@pge.com (Phillip Knight)
- Newsgroups: comp.lang.c++,comp.unix.programmer
- Subject: c++ static objects and fork
- Date: 25 Jan 1996 20:58:45 GMT
- Organization: Pacific Gas and Electric
- Message-ID: <4e8qu5$cmb@news02.comp.pge.com>
- NNTP-Posting-Host: psk3ws04.comp.pge.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- Here's a simple question, hopefully with a simple answer:
-
- I have a program which turns itself into a daemon using fork (etc.),
- but I also have several static objects within the program. What happens to
- these objects after the fork? There is no exec, so they dont get created anew,
- at least I guess this is the case...
- Anyone have this figured out? BTW, system is HPUX v 9.04.
-
- Thanks in advance!
-
- phil knight
- psk3@pge.com
-
-